package org.jeecg.modules.sistersophie.service;

import org.jeecg.modules.sistersophie.entity.AccountInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.transaction.Transactional;
import java.math.BigDecimal;

/**
 * @Description: account_info
 * @Author: jeecg-boot
 * @Date:   2021-05-30
 * @Version: V1.0
 */
public interface IAccountInfoService extends IService<AccountInfo> {

      int addAccount(Integer id, BigDecimal amount, Integer version);

      int subAccount(Integer id, BigDecimal amount, Integer version);

      int freeAccount(Integer id, BigDecimal amount, Integer version);

      int unFreeAccount(Integer id, BigDecimal amount, Integer version);

      AccountInfo selectByStudentId(Integer studentId,Integer accountType);

}
